package com.by.service.impl;


import com.by.mapper.DeptMapper;
import com.by.pojo.entity.Dept;
import com.by.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    private final DeptMapper deptMapper;

    @Autowired
    public DeptServiceImpl(DeptMapper deptMapper) {
        this.deptMapper = deptMapper;
    }

    @Override
    public List<Dept> selectDeptList() {
        return deptMapper.selectAll();
    }
}
